/* tech-courses.css — Mobile-first, premium responsive styles for Courses */

/* Theme */
:root {
  --bg: #08080a;
  --muted: #bfc0c6;
  --accent1: #5ea2ff;
  --accent2: #b36bff;
  --divider-red: linear-gradient(
    to bottom,
    rgba(255, 90, 90, 0),
    rgba(255, 60, 60, 0.95),
    rgba(255, 90, 90, 0)
  );
  --card-bg: rgba(255, 255, 255, 0.03);
  --glass: rgba(255, 255, 255, 0.025);
  --max-width: 1200px;
  --gap: 20px;
}

/* Base reset */
.courses-section,
#courses-section {
  box-sizing: border-box;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  color: #fff;
  background: transparent;
}
.courses-section img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Header */
.courses-header {
  max-width: 960px;
  margin: 0 auto 12px;
  text-align: center;
  padding: 4px 6px;
}
.courses-title {
  font-size: clamp(30px, 5.6vw, 34px);
  margin: 0 0 6px;
  font-weight: 800;
  line-height: 1.05;
}
.courses-gradient {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.courses-subtitle {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
}

/* Wrapper & divider (mobile behavior first) */
.courses-wrapper {
  max-width: var(--max-width);
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  padding: 0 16px;
}

/* Hide center divider on small screens (better UX) */
.courses-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(30px); /* offset slightly so it doesn't touch image */
  width: 0;
  pointer-events: none;
}

/* Course block — MOBILE (stacked) */
.course-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.01),
    rgba(255, 255, 255, 0.01)
  );
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  padding: 10px 0;
}

/* Visual first on mobile for better engagement */
.course-visual {
  order: 0;
  display: flex;
  justify-content: center;
}
.course-frame {
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* Info block */
.course-info {
  order: 1;
  padding: 6px 4px;
}
.course-tag {
  display: inline-block;
  padding: 8px 25px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22263a, #3b2a55);
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 10px;
}
.course-tag.course-tag-alt {
  background: linear-gradient(90deg, #40233d, #6f2b5f);
}
.course-heading {
  margin: 10px 0 8px;
  font-size: 18px;
}
.course-description {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* Button (premium) */
.course-btn {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(90deg, #1d4ed8, #2563eb);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.course-btn .arrow {
  display: inline-block;
  transform: translateX(0);
  transition: transform 0.22s ease;
  font-size: 16px;
  line-height: 1;
}
.course-btn:focus,
.course-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.2);
}
.course-btn:hover .arrow {
  transform: translateX(6px);
}

/* Left blocks: align content to right on larger screens — for mobile center it */
.course-left .course-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-right: 0;
}

/* Right blocks: default center on mobile */
.course-right .course-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-left: 0;
}

.course-frame.course-frame-alt img {
  height: 150px;
}
